/**
 * 施肥
 */
class UserPanel extends PanelBase {

	public constructor() {
		super();
		this.skinName = UserSkin;
	}


	// 头像
	private imgFace: eui.Image;
	// 昵称
	private labName: eui.Label;
	// 金币
	private labGold: eui.Label;
	// uid
	private labUid: eui.Label;


	protected createChildren() {
		super.createChildren();

		// 赋值头像
		this.imgFace.source = PlayerSelfData.userinfo["avatar"];
		// 赋值昵称
		this.labName.text = PlayerSelfData.userinfo["nickname"];
		// 赋值金币
		this.labGold.text = String(PlayerSelfData.gold);
		// 赋值uid
		this.labUid.text = String(PlayerSelfData.userinfo["id"]);
	}

}